#ifndef NODE_H
#define NODE_H

#include <list>
#include <string>
#include <pthread.h>
#include <fstream>
#include <boost/algorithm/string/replace.hpp>

using namespace std;

class Node {
	private:
	static pthread_mutex_t lock;
	string hostname;
	string hostip;
	bool active;
	bool online;
	bool verbose;
	list<string*> *output;
	public:
	Node(string,string,list<string*>*);
	string getHostname();
	string getIP();
	void execute(string *cmd);
	bool isOnline();
	bool isActive();
	void setActive(bool act);
	void setOnline(bool on);
	string toString();
};

#endif

